package com.taotao.slink.mapper;


import com.gitee.fastmybatis.core.mapper.CrudMapper;
import com.github.pagehelper.Page;
import com.taotao.slink.model.entity.ShortLink;
import com.taotao.sys.model.vo.sl.ShortLinkPageParam;
import org.apache.ibatis.annotations.Param;

/**
* 短链接DAO
*
* @author youbeiwuhuan
* @date 2023-06-26 14:36:20
*/
public interface ShortLinkMapper extends CrudMapper<ShortLink/*实体类*/, Long/*主键类型*/> {

    /**
    * 分页查询
    *
    * @param param    查询参数
    * @param pageNum  页号
    * @param pageSize 页大小
    * @return
    */
    Page<ShortLink> selectByPage(
        @Param("param") ShortLinkPageParam param,
        @Param("pageNum") int pageNum,
        @Param("pageSize") int pageSize);

}